package com.wlr.blog.article.controller;

import com.wlr.blog.util.common.dto.Result;
import com.wlr.blog.web.common.service.WebSiteService;
import com.wlr.blog.web.common.vo.WebInitInfoVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lrwang
 * @version 1.0
 * @date 2022/11/6 19:52
 */
@RestController
@RequestMapping("/website")
@Api(value = "网站配置接口类")
@Slf4j
public class WebsiteController {
    @Autowired
    WebSiteService webSiteService;

    @ApiOperation(value = "网站配置初始化接口")
    @GetMapping("/init")
    public Result<WebInitInfoVo> getWebInitInfo() {
        return Result.success(webSiteService.getWebInitInfo());
    }

}
